package com.cdck.safe.dete.model.vo;

import com.cdck.safe.dete.common.enums.MenuTypeEnum;
import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.List;



@ApiModel(value ="菜单视图对象")
@Data
public class MenuVO {

    @ApiModelProperty(value = "菜单ID")
    private Long id;

    @ApiModelProperty(value = "父菜单ID")
    private Long parentId;

    @ApiModelProperty(value = "菜单名称")
    private String name;

    @ApiModelProperty(value="菜单类型")
    private MenuTypeEnum type;

    @ApiModelProperty(value = "路由路径")
    private String path;

    @ApiModelProperty(value = "组件路径")
    private String component;

    @ApiModelProperty(value = "菜单排序(数字越小排名越靠前)")
    private Integer sort;

    @ApiModelProperty(value = "菜单是否可见(1:显示;0:隐藏)")
    private Integer visible;

    @ApiModelProperty(value = "ICON")
    private String icon;

    @ApiModelProperty(value = "跳转路径")
    private String redirect;

    @ApiModelProperty(value="按钮权限标识")
    private String perm;

    @ApiModelProperty(value = "子菜单")
    @JsonInclude(value = JsonInclude.Include.NON_NULL)
    private List<MenuVO> children;

}
